@{
    Ajax.Dna().Widget()
        .Design(@<text>
    @_WebPageInfo(item.Model.WebPage)
    </text>)
        .Content(@<text>
    @_WebPageInfo(WebSiteContext.Current.Page)
    </text>)
.Preview(@<text>
    @_WebPageInfo(new DNA.Mvc.WebPage() { Title = "WebPage title", Path = "~/preview/", Description = "There is the web page description text." })
    </text>)
        .Render();
}
@helper _WebPageInfo(DNA.Mvc.WebPage page)
    {
        if (page != null)
        { 
    <table style="width: 100%;">
        <tr>
            @if (!string.IsNullOrEmpty(page.ImageUrl))
            {
                <td style="width: 64px;">
                    <img src="@Url.Content(page.ImageUrl)" alt="@page.Title" />
                </td>  
            }
            <td>
                <h1 class="d-page-title">@GE.GetContent(page.Title) <g:plusone size="small"></g:plusone><span style="float: right; font-size: 100%;
                    font-weight: normal;">@ShareLinks.GetHtml(GE.GetContent(page.Title), pageLinkBack: UrlResolver.Resolve(page))</span></h1>
                <div class="d-page-desc">@GE.GetContent(page.Description)</div>
            </td>
        </tr>
    </table>
   
        }
}
